<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/BSP/dev_io.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_4ca18d753a70f6eada20fde478bd3fc8.html">BSP</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">dev_io.h</div></div>
</div><!--header-->
<div class="contents">
<a href="dev__io_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="preprocessor">#ifndef __DEV_IO_H__</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#define __DEV_IO_H__</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="dev__io_8h.html#a171b4c64b86b9c81fdab4fb5c91abda3">   29</a></span><span class="preprocessor">#define IO_DIR_I(GPIOx, PINx)           ( ( (GPIOx)-&gt;DIR ) &amp;= ~( 0x01 &lt;&lt; (PINx) ) )</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="dev__io_8h.html#a0035ca7a6992ee60ccd0bab873012994">   31</a></span><span class="preprocessor">#define IO_DIR_O(GPIOx, PINx)           ( ( (GPIOx)-&gt;DIR ) |= ( 0x01 &lt;&lt; (PINx) ) )</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="dev__io_8h.html#ab0ead146e3adc7e8710afee28f736c95">   34</a></span><span class="preprocessor">#define IO_GET(GPIOx, PINx)             ( ( ( (GPIOx)-&gt;IDR ) &gt;&gt; (PINx) ) &amp; 0x01 )</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="dev__io_8h.html#a96b4afe19e3f086e8b63be4f58797a71">   37</a></span><span class="preprocessor">#define IO_SET_L(GPIOx, PINx)           ( *( ( &amp;( (GPIOx)-&gt;DATAPIN0 ) ) + (PINx) ) = 0 )</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="dev__io_8h.html#a2b996c7f57f00197b2a21ec4e00265d0">   39</a></span><span class="preprocessor">#define IO_SET_H(GPIOx, PINx)           ( *( ( &amp;( (GPIOx)-&gt;DATAPIN0 ) ) + (PINx) ) = 1 )</span></div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#endif </span><span class="comment">// __DEV_IO_H__</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
